<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    // bignumber.js
    // decimal.js
    // big.js（轻量）

    import BigNumber from 'bignumber.js';

    const x = new BigNumber("123456789012345678901234567890");
    const y = new BigNumber("987654321098765432109876543210");

    console.log(x.plus(y).toString()); // "1111111110111111111011111111100"
    console.log(x.times(y).toString()); // "121932631137021795226185032733622923332237463801111263526900"
    console.log(y.dividedBy(x).toString()); // "8"
</script>
</html>